/* --- X-EATS MANAGER DASHBOARD STYLES --- */
/* This file extends order.css - ensure order.css is loaded first */



/* --- 1. CORE VARIABLES (Direct from order.css) --- */
:root {
    --bg: #f5f5f7;         /* Soft Apple-style white */
    --card-bg: #ffffff;    /* Pure white for cards */
    --accent: #008080;    /* Namcor Teal preserved */
    --text: #1d1d1f;      /* Near black for high contrast */
    --text-dim: #86868b;  /* Muted gray for secondary text */
    --border: #d2d2d7;    /* Light hairline borders */
    --sidebar-width: 260px;
    --header-height: 72px;
    --radius: 7px;        /* Standard 7px border radius */
}

/* --- 2. GLOBAL RESET --- */
body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', -apple-system, sans-serif; /* Marketplace Font */
    margin: 0; 
    overflow: hidden; 
    display: flex;
}

/* --- 3. BUTTON STYLES (Direct from order.css) --- */
/* Primary Black Action Button */
.btn-signup {
    background: var(--text);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-signup:hover {
    opacity: 0.9;
}

/* Secondary Teal Action Button */
.btn-apply {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 11px;
    border-radius: var(--radius);
    cursor: pointer;
    text-transform: uppercase;
}

/* Muted Action Button */
.action-btn-small {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
}

.action-btn-small:hover {
    background: #fff;
    border-color: var(--accent);
}

/* --- 4. DASHBOARD CARDS (Marketplace Style) --- */
.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- 5. NAVIGATION (Marketplace Style) --- */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius);
    transition: 0.2s;
}

.sidebar-link:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.sidebar-link.active {
    background: var(--text);
    color: #fff;
}

/* --- 6. FORM INPUTS --- */
.mgr-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.mgr-input:focus {
    border-color: var(--accent);
}
body {
    display: flex;
    height: 100vh;
    overflow: hidden; 
    margin: 0;
    padding: 0;
}

/* 1. Permanent Sidebar (Uber Eats Style) */
.admin-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
}

.admin-logo-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.admin-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-group-label {
    padding: 12px 24px 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    font-weight: 700;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    color: var(--text-dim);
}

.admin-nav-item:hover {
    background: var(--bg); /* Uses #f5f5f7 from order.css */
}

.admin-nav-item.active {
    background: #f0f8f8; /* Soft teal tint */
    color: var(--accent); /* Uses #008080 from order.css */
    border-right: 3px solid var(--accent);
}

.admin-nav-item.active i {
    color: var(--accent);
}

/* 2. Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow-y: auto;
}

.admin-header {
    height: 60px; /* Explicit height */
    min-height: 60px; /* Forces it not to shrink */
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100; /* Increased to stay above content */
    box-sizing: border-box; /* Ensures padding doesn't add to the height */
}

/* 3. Dashboard Grid Components (Reusing order.css card logic) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 32px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius); /* Uses 7px from order.css */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card h3 {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim);
}

.stat-card .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

/* Trend indicators */
.trend { font-size: 12px; font-weight: 600; }
.trend.positive { color: #008a00; }

/* Quick Action Buttons */
.action-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    text-align: left;
}

.action-item i {
    margin-right: 12px;
    color: var(--accent);
    width: 20px;
}

.action-item:hover {
    background: var(--bg);
    border-color: var(--accent);
}

/* Ensure the checkout-card from order.css is used for containers */
.checkout-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Table Styles for Backoffice */
.manager-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.manager-table th {
    text-align: left;
    padding: 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.manager-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.open { background: #e6f4ea; color: #1e7e34; }
.status-badge.paused { background: #fff4e5; color: #b26a06; }
.status-badge.closed { background: #fbe9e7; color: #d32f2f; }

/* Health Bar */
.health-bar-bg {
    width: 100px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    background: var(--accent); /* Your teal color */
}

/* Reusable Small Action Button */
.action-btn-small {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn-small:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* Order Management Specifics */
.column-header {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-pill {
    background: var(--border);
    color: var(--text);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.order-tab {
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
}

.order-tab.active {
    color: var(--text);
}

.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.order-ticket {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.order-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Performance Section Styling */
.chart-visual {
    position: relative;
    width: 100%;
}

.bar {
    flex: 1;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: opacity 0.2s;
    cursor: pointer;
}

.bar:hover {
    opacity: 0.8;
}

/* Label under each bar */
.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
}

.ops-metric {
    display: flex;
    flex-direction: column;
}

.health-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

/* Feedback & Star Styling */
.feedback-item:last-child {
    border-bottom: none !important;
}

.btn-full-action {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-full-action:hover {
    opacity: 0.9;
}

/* Fan list highlights */
.fan-list div:nth-child(1) div:first-child {
    background: #FFD700 !important; /* Gold */
    color: #000;
}

/* Reports Specific Styling */
.report-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.report-row span {
    color: var(--text-dim);
}

.tax-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    flex: 1;
    max-width: 300px;
    cursor: pointer;
    transition: 0.2s;
}

.tax-box:hover {
    border-color: var(--accent);
}

/* Specific status for processing payments */
.status-badge.processing {
    background: #e3f2fd;
    color: #1976d2;
}

/* Marketing UI Specifics */
.promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.promo-item.active-promo {
    border-left: 4px solid var(--accent);
    background: #f0f8f8;
}

.promo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.offer-type-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.offer-type-card:hover {
    border-color: var(--accent);
    background: var(--bg);
}

.offer-type-card strong {
    display: block;
    font-size: 14px;
}

.offer-type-card span {
    font-size: 12px;
    color: var(--text-dim);
}

/* Menu Editor Styles */
.menu-item-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.menu-item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-item-thumb {
    width: 48px;
    height: 48px;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* THE SWITCH (Toggle Slider) */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent); /* Namcor Teal */
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.slider.round {
  border-radius: 22px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Balance Card Specifics */
.payments-container .checkout-card[style*="background: var(--text)"] {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.payments-container .manager-table td {
    padding: 14px 20px;
}

/* Ensure icons are aligned in the setup boxes */
.payments-container .checkout-card i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* User Management Styles */
.role-pill {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-pill.admin { background: #6c5ce7; color: #fff; }
.role-pill.manager { background: var(--accent); color: #fff; }
.role-pill.staff { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.active { background: #27ae60; }
.status-dot.inactive { background: var(--text-dim); }

/* Reuse table styles from previous sections */

/* Settings Page Styling */
.settings-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: 0.2s;
}

.settings-link:hover {
    background: var(--bg);
    color: var(--accent);
}

.settings-link.active {
    background: #f0f8f8;
    color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.mgr-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    box-sizing: border-box;
}

.mgr-input-sm {
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
}

.setting-row-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg);
}

.setting-row-toggle:last-of-type {
    border-bottom: none;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Container for the Price and Buttons */
.card-footer {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid var(--border); 
    padding-top: 14px; 
    margin-top: 10px;
}

.price-tag {
    font-weight: 800; 
    font-size: 18px; 
    color: var(--text);
}

/* THE MANAGE BUTTON - Premium Outline */
.mgr-btn-outline {
    background: transparent !important;
    color: var(--text) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 0 16px !important;
    height: 36px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mgr-btn-outline:hover {
    background: var(--bg) !important;
    border-color: var(--text-dim) !important;
}

/* THE ACCEPT BUTTON - Namcor Accent */
.btn-signup {
    background: var(--accent) !important; /* Namcor Teal */
    color: white !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 0 16px !important;
    height: 36px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer;
}

/* Items Preview Box Styling */
.items-preview-box {
    background: #f8f9fa; 
    padding: 10px; 
    border-radius: 8px; 
    margin-bottom: 12px;
    border: 1px solid #efefef;
}

.fulfillment-badge {
    font-size: 10px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    background: var(--bg); 
    font-weight: 700;
    text-transform: uppercase;
}
.order-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 50px;
}

.order-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.history-table tr:hover {
    background: #fcfcfc;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill.completed { background: #e8f5e9; color: #2e7d32; }
.status-pill.cancelled, .status-pill.failed { background: #ffebee; color: #c62828; }
.status-pill.revoked { background: #fff3e0; color: #ef6c00; }

/* Ensure the modal overlay covers the ENTIRE screen */
.modal-overlay {
    position: fixed; /* NOT absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Higher than everything else */
}


/* Add this to your CSS file */
.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    color: #333333;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Ensure form groups inside the modal look right */
.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.modal-content .mgr-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Crucial for width alignment */
    font-size: 15px;
}

/* Ensure notifications float at the top-center */
.notification-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%); /* This keeps it centered */
    z-index: 10000;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    z-index: 1000;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: block;
}

.menu-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s;
}
.menu-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
input:checked + .slider { background-color: var(--accent); }
.slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider:before { transform: translateX(20px); }


.chart-bar-container {
    position: relative;
}

.chart-bar-hint {
    position: absolute;
    top: -20px;
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.chart-bar-container:hover .chart-bar-hint {
    opacity: 1;
}

.chart-bar-container div:hover {
    filter: brightness(1.1);
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }s

.prod-tab {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.prod-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.modifier-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}


/* Tab Navigation Styling */
.tab-btn {
    background: #f4f4f4;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: none;
    position: relative;
    top: 1px; /* Aligns with the header border */
}

.tab-btn:hover {
    background: #eee;
    color: var(--text-main);
}

.tab-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

/* Category Drill-down Items */
.drilldown-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.drilldown-item:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.02);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.drilldown-item.selected {
    border-left: 4px solid var(--accent);
    background: #f8f9ff;
}

/* Map Control Selects */
#insight-tab-heatmap select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 28px !important;
}

.login-full-overlay {
    position: fixed; inset: 0;
    background: #ffffff; /* Or match your --bg variable */
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.login-content-stack {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-brand h1 { font-size: 24px; margin: 0; font-weight: 700; color: #1d1d1f; }
.login-brand p { color: #86868b; margin-top: 5px; margin-bottom: 30px; }

.login-form-clean .field { margin-bottom: 12px; }
.login-form-clean input {
    width: 100%; padding: 16px; border: 1px solid #d2d2d7; 
    border-radius: 8px; font-size: 16px; box-sizing: border-box;
    background: #f5f5f7; outline: none; transition: border 0.2s;
}
.login-form-clean input:focus { border-color: #008080; background: #fff; }

.auth-options { 
    display: flex; justify-content: space-between; 
    font-size: 13px; color: #86868b; margin: 15px 0 25px 0; 
}

.login-submit-btn {
    width: 100%; padding: 16px; background: #1d1d1f; color: #fff;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
}

.login-divider { margin: 30px 0; border-top: 1px solid #e5e5e5; position: relative; }
.login-divider span { 
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 0 15px; font-size: 12px; color: #aaa;
}

.google-login-wide {
    width: 100%; padding: 14px; background: #fff; border: 1px solid #d2d2d7;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    gap: 10px; font-weight: 600; cursor: pointer;
}

.login-err { color: #eb4d4b; font-size: 13px; margin-top: 20px; font-weight: 600; display: none; }

.xe-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

.status-pill {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-pending { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; box-shadow: 0 0 15px rgba(194, 65, 12, 0.1); }
.status-refunded { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.status-resolved { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }

.btn-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Target the specific list classes we created */
.top-items-list::-webkit-scrollbar,
.feedback-list::-webkit-scrollbar,
.payouts-list::-webkit-scrollbar {
    width: 5px;
}

.top-items-list::-webkit-scrollbar-thumb,
.feedback-list::-webkit-scrollbar-thumb,
.payouts-list::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
}

.top-items-list::-webkit-scrollbar-thumb:hover,
.feedback-list::-webkit-scrollbar-thumb:hover,
.payouts-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}




/* Sidebar Shrink Logic */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 180px; /* Shrunk width */
        transition: width 0.3s ease;
    }

    /* Hide text labels and badges */
    .admin-logo-section span,
    .nav-group-label,
    .admin-nav-item span,
    #insights-pro-badge {
        display: none !important;
    }

    .admin-logo-section {
        justify-content: center;
        padding: 20px 0;
    }

    .admin-logo-section img {
        height: 24px; /* Slightly smaller logo */
    }

    .admin-nav-item {
        justify-content: center;
        padding: 15px 0 !important;
        margin: 5px 10px;
    }

    .admin-nav-item i {
        margin: 0 !important;
        font-size: 1.2rem;
    }

}